package com.yiheima.extendsdemo2;

public class Test3constrctor {
    public static void main(String[] args) {
        Zi zi = new Zi();
    }

   static class Zi extends Fu {
        public Zi() {
            super();//默认调用父类的构造器
            System.out.println("Zi()");
        }
    }

   static class Fu {
        public Fu() {
            System.out.println("Fu()");
        }
    }
}